package dao.impl;

import dao.ITradeDao;
import model.Trade;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class TradeDao implements ITradeDao {
    @Autowired
    private SqlSession sqlSession;
    @Override
    public int insertTrade(Trade trade) {
        return sqlSession.insert("dao.ITradeDao.insertTrade", trade);
    }
}
